package cn.saltice.idempotence.idem.idempotent;

import cn.saltice.idempotence.idem.store.IdempotentStorage;

/**
 * @program: idempotence
 * @description: 抽象
 * @author: Mr.Liu
 * @create: 2020-10-03 22:37
 **/
public abstract class AbstractIdempotent implements DistributedIdempotent{
    /**
     * 两级缓存
     */
    private IdempotentStorage cacheOne = null;
    private IdempotentStorage cacheTwo = null;

    public AbstractIdempotent(IdempotentStorage cacheOne, IdempotentStorage cacheTwo) {
        this.cacheOne = cacheOne;
        this.cacheTwo = cacheTwo;
    }
}
